<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2d变换</title>
    <style>
      html,body{
            background-color: aliceblue;
        }
        .box {
            width: 150px;
            height: 150px;
            background-color: aqua;           
           transition: all 0.5s ease;
           text-align: center;
           line-height: 150px;
           color: beige;

        }
       

        .box1:hover {
            transform: rotate(90deg);
        }
        .box2:hover {
            transform: scale(50%);
        }
        .box3:hover {
            transform: translateX(100px);
        }
        .box4:hover:hover {
            transform: skew(60deg);
        }
    </style>
</head>

<body>
    <div class="box box1">
        rotate
    </div>
    <div class="box box2">
        scale
    </div>
    <div class="box box3">
        translate
    </div>
    <div class="box box4">
        skew
    </div>
</body>

</html>